package com.mjf.cjt.service;

import com.chanjet.openapi.sdk.java.exception.ChanjetApiException;

public interface CjtAuthService {

    /**
     * 根据商户ID获取token
     * @param orgId
     * @return
     * @throws ChanjetApiException
     */
    String getToken(String orgId) throws ChanjetApiException;

    String doCompanyTempAuth(String appName, String orgId);

    /**
     * 通过临时code请求token，保存永久客户编码
     * @param code
     * @throws ChanjetApiException
     */
    void doTokenByTempCode(String code) throws ChanjetApiException;
}
